package me.king.mybatis.services;

import me.king.mybatis.component.biz.IBaseService;
import me.king.mybatis.component.biz.TransactionSupportService;
import me.king.mybatis.component.page.PageBean;
import me.king.mybatis.component.page.PageInParam;
import me.king.mybatis.dao.UserinfosDAO;
import me.king.mybatis.vo.Userinfos;

@SuppressWarnings({"rawtypes","unchecked"})
public class NormalService extends TransactionSupportService{
	
	private IBaseService ibaseService = getBaseServiceTemplate();
	
	public void insertUser(Userinfos user) {
		ibaseService.save(UserinfosDAO.class, "insertUser", user);
	}
	
	public PageBean<Userinfos> findBean(PageInParam pip) {
		return new PageBean<Userinfos>(pip).getBean(UserinfosDAO.class);
	}
	
	public IBaseService<?> getIbaseService() {
		return ibaseService;
	}
	
}
